Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New parameter amrex::init_snan #4030

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

WeiqunZhang
Copy link
Member

Uninitialized FArrayBox, BaseFab<double|float>, PODVectors<double|float>, Gpu::DeviceVector<double|float>, etc. will be initialized to signaling NaNs, if this parameter is true. The default value for the new parameter is false unless AMREX_DEBUG or AMREX_TESTING is true.

Note that previously this was only performed for FArrayBox, and it was controlled by fab.init_snan.

@WeiqunZhang WeiqunZhang requested a review from atmyers July 10, 2024 22:26
Uninitialized FArrayBox, BaseFab<double|float>, PODVectors<double|float>,
Gpu::DeviceVector<double|float>, etc. will be initialized to signaling NaNs,
if this parameter is true. The default value for the new parameter is false
unless AMREX_DEBUG or AMREX_TESTING is true.

Note that previously this was only performed for FArrayBox, and it was
controlled by fab.init_snan.
@WeiqunZhang WeiqunZhang merged commit dcb9cc0 into AMReX-Codes:development Jul 11, 2024
71 checks passed
@WeiqunZhang WeiqunZhang deleted the init_snan branch July 11, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants